"""mobiledj_Security URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/3.2/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  path('', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  path('', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.urls import include, path
    2. Add a URL to urlpatterns:  path('blog/', include('blog.urls'))
"""
from django.urls import path

from web.views import account, device, users, device_query, botgate_api, vendor
from web.views import blockip
from web.views import botgate_attackip, botgate_inject_attacktype, botgate_attacktype
from web.views import botgate_attackpath, sangfor_fw, sangfor_fw_attacklog, sangfor_fw_attackip
from web.views import botgate_warnlog, skyeye, skyeye_log, skyeye_attackip, botgate_ndaytype
from web.views import device_type, botgate, k01, home, qianxing_fw, statistics
from web.views import k01_attackip, k01_attackip_query, botgate_website, autoblockip_api
from web.views import botgate_bottype

urlpatterns = [
    # path('admin/', admin.site.urls),
    path('login/', account.login, name='login'),
    path('sms/login/', account.sms_login, name='sms_login'),
    path('logout/', account.logout, name='logout'),
    path('home/', home.home, name='home'),
    path('home_chart/', home.home_chart, name='home_chart'),
    path('botgate_api/', botgate_api.api, name='botgate_api'),
    path('botgate_api_v2/', botgate_api.api_v2, name='botgate_api_v2'),
    path('autoblockip_api/', autoblockip_api.blockip_api, name='autoblockip_api'),

    path('device_type/list/', device_type.device_type_list, name='device_type_list'),
    path('device_type/add/', device_type.device_type_add, name='device_type_add'),
    path('device_type/edit/<int:pk>', device_type.device_type_edit, name='device_type_edit'),
    path('device_type/delete/', device_type.device_type_delete, name='device_type_delete'),

    path('vendor/list/', vendor.vendor_list, name='vendor_list'),
    path('vendor/add/', vendor.vendor_add, name='vendor_add'),
    path('vendor/edit/<int:pk>/', vendor.vendor_edit, name='vendor_edit'),
    path('vendor/delete/', vendor.vendor_delete, name='vendor_delete'),

    path('device/list/', device.device_list, name='device_list'),
    path('device/add/', device.device_add, name='device_add'),
    path('device/edit/<int:pk>/', device.device_edit, name='device_edit'),
    path('device/delete/', device.device_delete, name='device_delete'),

    path('users/list/', users.users_list, name='users_list'),
    path('users/add/', users.users_add, name='users_add'),
    path('users/edit/<int:pk>/', users.users_edit, name='users_edit'),
    path('users/reset/<int:pk>/', users.users_reset, name='users_reset'),
    path('users/delete/', users.users_delete, name='users_delete'),
    path('current/userinfo/', users.current_userinfo_change, name='current_userinfo'),

    path('device_query/list/', device_query.device_query_list, name='device_query_list'),

    path('k01/list/', k01.k01_list, name='k01_list'),
    path('k01_account_chart/', k01.k01_account_chart, name='k01_account_chart'),
    path('k01_attackip/list/<int:pk>/', k01_attackip.attackip_list, name='k01_attackip_list'),

    path('k01_attackip_query/list/', k01_attackip_query.attackip_list, name='k01_attackip_query_list'),

    path('botgate/list/', botgate.botgate_list, name='botgate_list'),
    path('botgate_account_chart/', botgate.botgate_account_chart, name='botgate_account_chart'),
    path('botgate_attackip/list/<int:pk>/', botgate_attackip.botgate_attackip_list, name='botgate_attackip_list'),
    path('botgate_attackip/add/<int:pk>/', botgate_attackip.botgate_attackip_add, name='botgate_attackip_add'),
    path('botgate_attackip/block/<int:pk>/<str:src_ip>/', botgate_attackip.block_ip,
         name='botgate_block_ip'),
    path('botgate_attackip_chart/', botgate_attackip.statistics_attackip, name='botgate_attackip_chart'),
    path('botgate_inject_attacktype/list/<int:pk>/', botgate_inject_attacktype.inject_attacktype_list,
         name='inject_attacktype_list'),
    path('botgate_attacktype/list/<int:pk>/', botgate_attacktype.attacktype_list, name='botgate_attacktype_list'),
    path('botgate_attackpath/list/<int:pk>/', botgate_attackpath.attackpath_list, name='botgate_attackpath_list'),
    path('botgate_warn_log/list/<int:pk>/', botgate_warnlog.warnlog_list, name='botgate_warnlog_list'),
    path('botgate_website/list/<int:pk>/', botgate_website.website_list, name='botgate_website_list'),
    path('botgate_normalrequest_chart/', botgate_website.statistics_normal, name='botgate_normalrequest_chart'),
    path('botgate_abnormalrequest_chart/', botgate_website.statistics_abnormal, name='botgate_abnormalrequest_chart'),
    path('botgate_ndaytype/list/<int:pk>/', botgate_ndaytype.ndaytype_list, name='botgate_ndaytype_list'),
    path('botgate_ndaytype_chart/', botgate_ndaytype.statistics_nday, name='botgate_ndaytype_chart'),
    path('botgate_bottype/list/<int:pk>/', botgate_bottype.bottype_list, name='botgate_bottype_list'),
    path('botgate_bottype_chart/', botgate_bottype.statistics_bottype, name='botgate_bottype_chart'),


    path('sangfor_fw/list/', sangfor_fw.sangfor_fw_list, name='sangfor_fw_list'),
    path('sangfor_fw_account_chart/', sangfor_fw.account_chart, name='sangfor_fw_account_chart'),
    path('sangfor_fw_attacklog/list/<int:pk>/', sangfor_fw_attacklog.attacklog_list,
         name="sangfor_fw_attacklog_list"),
    path('sangfor_attackip/list/<int:pk>/', sangfor_fw_attackip.attackip_list,
         name='sangfor_attackip_list'),
    path('sangfor_attackip/block/<int:pk>/<str:src_ip>/', sangfor_fw_attackip.block_ip,
         name='sangfor_block_ip'),
    path('sangfor_attackip_chart/', sangfor_fw_attackip.statistics_attackip,
         name='sangfor_attackip_chart'),

    path('skyeye/list/', skyeye.skyeye_list, name='skyeye_list'),
    path('skyeye_account_chart/', skyeye.skyeye_account_chart, name='skyeye_account_chart'),
    path('skyeye_log/list/<int:pk>/', skyeye_log.skyeyelog_list, name='skyeyelog_list'),
    path('skyeye_attackip/list/<int:pk>/', skyeye_attackip.attackip_list, name='skyeye_attackip_list'),
    path('skyeye_attackip/block/<int:pk>/<str:src_ip>/', skyeye_attackip.block_ip, name='skyeye_block_ip'),
    path('skyeye_attackip_chart/', skyeye_attackip.statistics_attackip, name='skyeye_attackip_chart'),

    path('qianxing_fw/list/', qianxing_fw.qianxing_fw_list, name='qianxing_fw_list'),
    path('qianxing_fw_account_chart/', qianxing_fw.qianxing_fw_account_chart, name='qianxing_fw_account_chart'),

    path('blockip/list/', blockip.blockip_list, name='blockip_list'),
    path('blockip/unblock/<int:pk>/', blockip.unblock_ip, name='unblock_ip'),

    path('statistics/', statistics.statistics, name='statistics'),
    path('statistics_attackip/', statistics.statistics_attackip, name='statistics_attackip'),
    path('statistics_attacktype/', statistics.statistics_attacktype, name='statistics_attacktype'),
    path('statistics_injectattacktype/', statistics.statistics_injectattacktype, name='statistics_injectattacktype'),
    path('statistics_warningtype/', statistics.statistics_warningtype, name='statistics_warningtype'),
    path('statistics_ndaytype/', statistics.statistics_ndaytype, name='statistics_ndaytype'),
    path('statistics_bottype/', statistics.statistics_bottype, name='statistics_bottype'),
    path('statistics_location/', statistics.statistics_location, name='statistics_location'),
    path('statistics_skyeye_warningtype/', statistics.statistics_skyeye_warningtype,
         name='statistics_skyeye_warningtype'),
    path('statistics_sangforfw_attacktype/', statistics.statistics_sangforfw_attacktype,
         name='statistics_sangforfw_attacktype'),
    path('statistics_account/', statistics.statistics_account, name='statistics_account')


]
